package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 设备支持snmp协议，此表是snmp协议里面 oid和device_monitor_dynamic及device_status_static表参数对照表
 * 实体
 * </p>
 *
 * @author ping
 * @since 2020-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DevicePropertyOid对象", description = "设备支持snmp协议，此表是snmp协议里面
// oid和device_monitor_dynamic及device_status_static表参数对照表")
public class DevicePropertyOid extends Model<DevicePropertyOid> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "property_id", type = IdType.AUTO)
    private Integer propertyId;

    // "属性名称")
    private String propertyName;

    // "对应的设备oid")
    private String oid;

    @Override
    public Serializable pkVal() {
        return this.propertyId;
    }

}
